package cn.hxzy.service.impl;

import cn.hxzy.entity.accreditation.TsCarCard;
import cn.hxzy.mapper.TsCarCardMapper;
import cn.hxzy.service.TsCarCardService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author Kuizhi.Ma
 * @since 2023-06-25
 */
@Service
public class TsCarCardServiceImpl extends ServiceImpl<TsCarCardMapper, TsCarCard> implements TsCarCardService {
    @Autowired
    private TsCarCardMapper tsCarCardMapper;

    @Override
    //    添加carCard信息
    public TsCarCard insertTsCarCard(TsCarCard tsCarCard) {
        int insert = tsCarCardMapper.insert(tsCarCard);
        return insert == 0 ? null : tsCarCard;
    }
}
